package com.da.result;

import com.da.result.model.ModelInfo;

import java.util.List;

/**
 * 模型信息响应对象
 *
 * @author da
 * @time 2024/7/12 下午 2:25
 */
public class ModelInfoResult implements Result {

    /**
     * 模型信息列表
     */
    private List<ModelInfo> models;

    public ModelInfoResult() {
    }

    public ModelInfoResult(List<ModelInfo> models) {
        this.models = models;
    }

    /**
     * 获取模型列表
     *
     * @return 模型列表
     */
    public List<ModelInfo> getModels() {
        return models;
    }


    @Override
    public String content() {
        return "{\"models\"" + ":" + models + "}";
    }

    @Override
    public String toString() {
        return "{\"models\"" + ":" + models + "}";
    }
}
